package com.baor.order.mapper;

import java.util.List;
import java.util.Map;

import com.baor.order.domain.TOrder;
import org.springframework.stereotype.Component;

/**
 * 订单Mapper接口
 * 
 * @author ruoyi
 * @date 2025-07-18
 */
@Component
public interface TOrderMapper 
{

//    public List<TOrder> selectTOrderPayingList(Map<String, Object> map );
//    public List<TOrder> selectTOrderUnshippedList(Map<String, Object> map );
    /**
     * 查询订单
     * 
     * @param orderId 订单主键
     * @return 订单
     */
    public TOrder selectTOrderByOrderId(Long orderId);

    /**
     * 查询订单列表
     * 
     * @param tOrder 订单
     * @return 订单集合
     */

    public List<TOrder> selectTOrderList(TOrder tOrder);

    public List<TOrder> selectTOrderPayingList(TOrder tOrder);

    public List<TOrder> selectTOrderUnshippedList(TOrder tOrder);

    public List<TOrder> selectTOrderShippedList(TOrder tOrder);

    public List<TOrder> selectTOrderCompletedList(TOrder tOrder);

    public List<TOrder> selectTOrderClosedList(TOrder tOrder);

    public int updateTOrderDeliveryStatus(TOrder tOrder);
    /**
     * 新增订单
     * 
     * @param tOrder 订单
     * @return 结果
     */
    public int insertTOrder(TOrder tOrder);

    /**
     * 修改订单
     * 
     * @param tOrder 订单
     * @return 结果
     */
    public int updateTOrder(TOrder tOrder);

    /**
     * 删除订单
     * 
     * @param orderId 订单主键
     * @return 结果
     */
    public int deleteTOrderByOrderId(Long orderId);

    /**
     * 批量删除订单
     * 
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTOrderByOrderIds(Long[] orderIds);
}
